<?php
/**
 * LICENSE
 *
 * Copyright (C) 2010 Nicholas Miller
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or any
 * later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

/**
 * PayPal SOAP Credential Collection
 *
 * @author     Nicholas Miller <nicholas.j.miller@gmail.com>
 * @copyright  2010 Nicholas Miller
 * @category   PaypalSoap
 */
class PayPalSoap_Credentials
{
    /**
     * @var string
     */
    protected $_username;

    /**
     * @var string
     */
    protected $_password;

    /**
     * @var string
     */
    protected $_signature;
    
    /**
     * @var string
     */
    protected $_subject;


    /**
     * Class Constructor
     * 
     * @param string $username
     * @param string $password
     * @param string $signature
     * @param string $subject
     */
    function __construct($username = null, $password = null, $signature = null, $subject = null)
    {
        $this->_username  = $username;
        $this->_password  = $password;
        $this->_signature = $signature;
        $this->_subject   = $subject;
    }

    /**
     * Gets username
     * @return string
     */
    public function getUsername()
    {
        return $this->_username;
    }

    /**
     * Sets username
     * @param string $username
     * @return PayPalSoap_Credentials For a fluent interface
     */
    public function setUsername($username)
    {
        $this->_username = $username;
        return $this;
    }

    /**
     * Gets password
     * @return string
     */
    public function getPassword()
    {
        return $this->_password;
    }

    /**
     * Sets password
     * @param string $password
     * @return PayPalSoap_Credentials For a fluent interface
     */
    public function setPassword($password)
    {
        $this->_password = $password;
        return $this;
    }

    /**
     * Gets signature
     * @return string
     */
    public function getSignature()
    {
        return $this->_signature;
    }

    /**
     * Sets signature
     * @param string $signature
     * @return PayPalSoap_Credentials For a fluent interface
     */
    public function setSignature($signature)
    {
        $this->_signature = $signature;
        return $this;
    }

    /**
     * Gets subject
     * @return string
     */
    public function getSubject()
    {
        return $this->_subject;
    }

    /**
     * Sets subject
     * @param <type> $subject
     * @return PayPalSoap_Credentials for a fluent interface
     */
    public function setSubject($subject)
    {
        $this->_subject = $subject;
        return $this;
    }
}


